package com.cn.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.Size;

/**
 * Created by chenyuncong on 2019/9/12.
 */
@Data
@Table(name="sys_user")
public class User {
    @Id
    private int id;

    @Size(min=6, max=20)
    private String name;

    @Size(min=8, max=20)
    private String password;
}
